<%
  handler_name = local_assigns[:handler_name]
  ephemeral_warning = local_assigns[:ephemeral_warning]
  schema = form.object.options_schema(handler_name)
  attributes = form.object.options_attributes(handler_name)
%>

<% if ephemeral_warning %>
  <%= cell("decidim/announcement", t(".ephemeral_warning", path: decidim_admin.authorization_workflows_path), callout_class: "warning" ) %>
<% end %>

<%= form.fields_for(:authorization_handlers_options) do |options_form| %>
  <%= options_form.fields_for(handler_name, schema) do |attribute_options_form| %>
    <% attributes.each do |name, attribute| %>
      <%= settings_attribute_input(
            attribute_options_form,
            attribute,
            name,
            "decidim.authorization_handlers.#{handler_name}.fields",
            tabs_prefix: "#{name}_tabs_prefix"
          ) %>
    <% end %>
  <% end %>
<% end %>
<br>
<%= form.error_for(:base) %>
